<?php
include '_init_.php';
	$orderManager = Order_Manager::getOrderManager($_REQUEST['id']);
if($orderManager == null)
	exit("Not exist");
if($orderManager->getStatus() != Order_Manager::$STATUS_SAVED)
	exit("Not allowed");
$orderManager->init();


$act = isset($_REQUEST['act'])?$_REQUEST['act']:'';
if($act == 'save')
{
	$orderManager->setInfo($_REQUEST);
	$orderManager->persistOrderInfo();
	AppMain::refreshParentFrame();
}

$orderInfo = $orderManager->getInfo();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/formvalidate.js"></script>
</head>

<body>
<form action="cosie.php">
<input type="hidden" name="act" value="save"/>
<input type="hidden" name="id" value="<?php echo $orderManager->getId();?>"/>

<div class="mainf-8">
    <ul>
    <li class="maina-1k">拍攝資訊</li>
      <li class="mainf-1m"><img src="images/line5.gif" width="676" height="7" align="top" /></li>
     <ul>
     <li class="mainf-1e" style="width:200px">拍攝人數（成人）
     <input name="person_number" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['person_number']);?>"/>
       <label for="select"></label>
     </li>
      <li class="mainf-1e" style="width:400px">服裝造型（成人）
        <input name="dress_number" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['dress_number']);?>"/>
     <label for="select"></label>
     </li>
     
     <li class="mainf-1e" style="width:200px">拍攝人數（小孩）
     <input name="person_number2" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['person_number2']);?>"/>
       <label for="select"></label>
     </li>
      <li class="mainf-1e" style="width:400px">服裝造型（小孩）
        <input name="dress_number2" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['dress_number2']);?>"/>
     <label for="select"></label>
     </li>
     
       <li class="mainf-1e2" style="width:200px">*增加拍攝人數（成人）
     <input name="person_number_add" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['person_number_add']);?>"/>
       <label for="select"></label>
       </li>
     <li class="mainf-1e2" style="width:400px">*增加服裝造型（成人）
      <input name="dress_number_add" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['dress_number_add']);?>"/>
      <label for="select"></label>
     </li>
     
      <li class="mainf-1e2" style="width:200px">*增加拍攝人數（小孩）
     <input name="person_number2_add" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['person_number2_add']);?>"/>
       <label for="select"></label>
       </li>
     <li class="mainf-1e2" style="width:400px">*增加服裝造型（小孩）
      <input name="dress_number2_add" type="text"  class="maine-keying _validate_form_int" value="<?php echo Util::html_safe($orderInfo['dress_number2_add']);?>"/>
      <label for="select"></label>
     </li>
     
      </ul>
      </ul>
    </div>
    <div class="mainf-7">
<ul>
<li class="article-1g"><input name="" type="button" class="article-1a_btn" value="儲存" onclick="document.forms[0].submit();return false;"/></li>
</ul>
</div>
</form>
</body>
</html>
